package com.aikon.wht.designPattern.decorator;

/**
 * Created by haitao.wang on 2016/12/7.
 */
public class mochaDecorator extends TasteDecorator {

    public mochaDecorator(Beverage beverage) {
        super(beverage);
        description = beverage.getDescription() + "mocha";
    }


    @Override
    public float cost() {
        return super.beverage.cost() + 10;
    }


}
